#include "mystdio.h"
int main()
{
    const char * str1 = "teststring1\n";
    const char * str2 = "teststring2\n";
    const char * filename = "test.txt";
    FILE* fp=myfopen(filename, "w");
    myfwrite(str1,strlen(str1),1,fp);//不需要写入结尾的\0
    myfwrite(str2, strlen(str2),1,fp);//不需要写入结尾的\0
    myfclose(fp);
    return 0; 
}